#set size square

#set xtics 5
#set ytics 5



set mxtics 2
set mytics 2

set border lw 1

#set grid lt 2 lw 0.5 lc rgb "#DDDDDD"



set tmargin -2
set bmargin -2
set lmargin -2
set rmargin -2

set xtics scale 0.7
set ytics scale 0.7

set key top left

PS = 0.2
TR = 0.2

COL = 2

X1 = 0.0;
X2 = 45.0;
Y1 = 0.0;
Y2 = 20.0;

SIZEX = 900.0;
SIZEY = SIZEX*(Y2-Y1)/(X2-X1);

set xrange [X1:X2]
set yrange [Y1:Y2]

set format y2 "%.1f"
set format x2 "%.1f"

gstepx = 2.9

set xtics 0, 1, 45
set ytics 0, 1, 45

set term pngcairo dashed truecolor font "Arial, 10" size SIZEX, SIZEY  enhanced


while (gstepx<4.0) {

	set x2tics 0, gstepx, X2
	set y2tics 0, gstepx, Y2

	set output sprintf("comp.2.png/comp.%.2f.LD.png", gstepx)

	set multiplot
	
	unset grid
	set grid xtics mxtics ytics mytics lt 1 lc rgb '#F2F2F2', lt 1 lc rgb '#D0D0D0' lw 0.1
	plot 1/0 t ""
	
	unset grid
	set grid x2tics y2tics lt 1 lw 1 lc rgb "#BBBBBB" back
	plot 1/0 t ""
	
	unset grid

	plot sprintf("<./kernel -period 10 -ssF -sstime 10 -dt 0.00025 -gstepx %g", gstepx) u 1:COL:(PS) with circles lc rgb "#FF5D00" fs transparent solid TR noborder t sprintf("gstepx=%.2f", gstepx)
	
	unset multiplot
	unset grid
	
	unset x2tics
	unset y2tics
	
	gstepx = gstepx + 0.1

}


exit
